package cn.edu.nwpu.warehousemanagement.pojo.request;

import cn.edu.nwpu.warehousemanagement.constantEnum.UserRole;
import jakarta.validation.constraints.Pattern;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 管理员更新用户信息请求
 *
 * @author Loadstar
 * @version 1.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
public class AdminUpdateUserInfoRequest extends UpdateSelfInfoRequest {

    Long id;

    @Pattern(regexp = "^(ADMIN|WAREHOUSE_MGR|BUYER|COURIER)$")
    UserRole role;
}
